package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * module_authorize（模块授权表）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("module_authorize")
@ApiModel(value = "ModuleAuthorize对象", description = "module_authorize（模块授权表）")
public class ModuleAuthorize extends Model<ModuleAuthorize> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "模块流水号")
    @TableId("module_id")
    private String moduleId;

    @ApiModelProperty(value = "角色流水号")
    @TableField("role_id")
    private String roleId;

    @TableField("create_user_id")
    private String createUserId;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_user_id")
    private String updateUserId;

    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.moduleId;
    }

}
